[IA64] Clear resource structure before using it in allocate_resource().
authorAlex Williamson <alex.williamson@hp.com>
Thu, 31 May 2007 17:25:46 +0000 (11:25 -0600)
committerAlex Williamson <alex.williamson@hp.com>
Thu, 31 May 2007 17:25:46 +0000 (11:25 -0600)
Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
linux-2.6-xen-sparse/arch/ia64/xen/hypervisor.c

index eccb41f8ae276290b016f567f2b31d0ff81cb977..c996079ba4274ad0487dd573ab7b87e62efbdfa6 100644 (file)
@@ -1208,7 +1208,7 @@ xen_ia64_allocate_resource(unsigned long size)
        struct resource* res;
        int error;
        
-       res = kmalloc(sizeof(*res), GFP_KERNEL);
+       res = kzalloc(sizeof(*res), GFP_KERNEL);
        if (res == NULL)
                return ERR_PTR(-ENOMEM);